package com.ruoyi.project.tugboat.service.impl;

import java.util.List;

import com.ruoyi.project.tugboat.mapper.CTugboatMapper;
import com.ruoyi.project.tugboat.service.ICTugboatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.tugboat.domain.CTugboat;

/**
 * 拖轮数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-14
 */
@Service
public class CTugboatServiceImpl implements ICTugboatService 
{
    @Autowired
    private CTugboatMapper cTugboatMapper;

    /**
     * 查询拖轮数据
     * 
     * @param tugboatId 拖轮数据主键
     * @return 拖轮数据
     */
    @Override
    public CTugboat selectCTugboatByTugboatId(Long tugboatId)
    {
        return cTugboatMapper.selectCTugboatByTugboatId(tugboatId);
    }

    /**
     * 查询拖轮数据列表
     * 
     * @param cTugboat 拖轮数据
     * @return 拖轮数据
     */
    @Override
    public List<CTugboat> selectCTugboatList(CTugboat cTugboat)
    {
        return cTugboatMapper.selectCTugboatList(cTugboat);
    }

    /**
     * 新增拖轮数据
     * 
     * @param cTugboat 拖轮数据
     * @return 结果
     */
    @Override
    public int insertCTugboat(CTugboat cTugboat)
    {
        return cTugboatMapper.insertCTugboat(cTugboat);
    }

    /**
     * 修改拖轮数据
     * 
     * @param cTugboat 拖轮数据
     * @return 结果
     */
    @Override
    public int updateCTugboat(CTugboat cTugboat)
    {
        return cTugboatMapper.updateCTugboat(cTugboat);
    }

    /**
     * 批量删除拖轮数据
     * 
     * @param tugboatIds 需要删除的拖轮数据主键
     * @return 结果
     */
    @Override
    public int deleteCTugboatByTugboatIds(Long[] tugboatIds)
    {
        return cTugboatMapper.deleteCTugboatByTugboatIds(tugboatIds);
    }

    /**
     * 删除拖轮数据信息
     * 
     * @param tugboatId 拖轮数据主键
     * @return 结果
     */
    @Override
    public int deleteCTugboatByTugboatId(Long tugboatId)
    {
        return cTugboatMapper.deleteCTugboatByTugboatId(tugboatId);
    }
}
